package com.foxit.pdf2pdf.web.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.foxit.pdf2pdf.web.common.MultiThreadDownLoad;
@Controller
public class MultiThreadController {
	protected static final Logger logger = Logger.getLogger(MultiThreadController.class);
	
	
	@RequestMapping(value = "/DownLoadPDF.do")
	public String DownLoadPDF(HttpServletRequest request,
			HttpServletResponse response){
		try {
			MultiThreadDownLoad down = new MultiThreadDownLoad("","");
			down.startDownload();
		} catch (Exception e) {
			e.printStackTrace();
			logger.error(e.getMessage());
		}
		
        return null;
    }  
 
}
